<?php


namespace app\common\model;

use think\Model;
use traits\model\SoftDelete;

class Location extends Model {
    protected $pk = 'id';

    protected $name = 'area';

    /**
     * 传入省id 获取市区id
     */
    public static function getNextCityList($id) {
        //获取全部省份
        $pro = Location::field('id,pid,name,first')->where('pid', '=', $id)->select();
        return $pro;
    }
}